<%-- 
    Document   : index
    Created on : 2009-4-15, 10:17:29
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>用户资料列表</title>
    </head>
    <body>
        <h1>用户资料列表</h1>
        <table border="1">
            <tr>
                <td>名称</td>
                <td>地址</td>
                <td>邮箱</td>
                <td>备注</td>
                <td></td>
                <td></td>
            </tr>
            <c:forEach items="${users}" var="user">
            <tr>
                <td><c:out value="${user.name}"/></td>
                <td><c:out value="${user.addr}"/></td>
                <td><c:out value="${user.email}"/></td>
                <td><c:out value="${user.remark}"/></td>
                <td><a href="<c:url value="/user/edit/${user.id}"/>">修改</a></td>
                <td><a href="<c:url value="/user/destroy/${user.id}"/>">删除</a></td>
            </tr>
            </c:forEach>
        </table>
        <p><a href="<c:url value="/user/new_"/>">新建</a></p>
    </body>
</html>
